function edges = DisplayEdges(edges, bounds, fig_h)


disp('DisplayEdges:There is a compatibility issue between matlab 2016 and 2013')
figure(fig_h);
for i=1:length(edges)
    xdata = (bounds(2)-bounds(1))*(edges(i).frameID -1/2);
%     if ishandle(edges(i).h)
%         set(edges(i).h, 'XData', xdata, 'YData', edges(i).posX);
%     else
        edges(i).h = plot(xdata, edges(i).posX, 'Color', 'g');
%     end
end

end
